package com.li.dao;

import com.li.model.UserProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserProjectMapper {
    //通过用户id查询所有工程
    public List<UserProject> queryAllByUid(@Param("uid") long uid);
    public void addProject(UserProject userProject);
    public void updateProject(UserProject userProject);
    public void deleteProject(@Param("id") long id);
    public UserProject queryProjectById(@Param("id") long id);
}
